package com.numberone.master.modules.api.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping(value = "/complain/group/**", produces = MediaType.APPLICATION_JSON_VALUE)
public class GroupComplainController {

	@RequestMapping(value = "/send",method = RequestMethod.POST,
			produces=MediaType.APPLICATION_JSON_VALUE)
	public String send(@RequestParam  String str) {
		System.out.println(str);
		return "成功";

	}
	
	@RequestMapping(value = "/test",method = RequestMethod.POST,
			produces=MediaType.APPLICATION_JSON_VALUE)
	public String test(@RequestBody  String str) {
		System.out.println(str);
		return "成功";
	}
	
}
